package cn.stylefeng.guns.modular.basic.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 往来地址表
 */
@Data
@TableName("basic_address")
public class BasicAddress implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 单位名称
     */
    @TableField("putgoods_name")
    private String putgoodsName;

    /**
     * 子公司
     */
    @TableField("subsidiary")
    private String subsidiary;

    /**
     * 单位id
     */
    @TableField("putgoods_id")
    private Long putgoodsId;

    /**
     * 地址
     */
    @TableField("address")
    private String address;

    /**
     * 联系人
     */
    @TableField("contacts")
    private String contacts;

    /**
     * 联系电话
     */
    @TableField("tel")
    private String tel;
    
    /**
     * 线路id
     */
    @TableField("line_id")
    private Long lineId;

    /**
     * 归属线路
     */
    @TableField("line_name")
    private String lineName;

    /**
     * 围栏开关
     */
    @TableField("switch_wl")
    private String switchWl;

    /**
     * 经度
     */
    @TableField("longitude")
    private String longitude;

    /**
     * 维度
     */
    @TableField("latitude")
    private String latitude;

    /**
     * 提货围栏半径
     */
    @TableField("switch_bj")
    private String switchBj;

    /**
     * 收货围栏半径
     */
    @TableField("switch_bj2")
    private String switchBj2;

    /**
     * 公里数
     */
    @TableField("kilometer")
    private String kilometer;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @TableField(value = "update_time", fill = FieldFill.UPDATE)
    private Date updateTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 修改用户
     */
    @TableField(value = "update_user", fill = FieldFill.UPDATE)
    private Long updateUser;


    @TableField("sheng")
    private String sheng;

    @TableField("shi")
    private String shi;

    @TableField("qu")
    private String qu;

    @TableField("jie")
    private String jie;


    @Override
    public String toString() {
        return "BasicAddress{" +
                "id=" + id +
                ", putgoodsName='" + putgoodsName + '\'' +
                ", subsidiary='" + subsidiary + '\'' +
                ", putgoodsId=" + putgoodsId +
                ", address='" + address + '\'' +
                ", contacts='" + contacts + '\'' +
                ", tel='" + tel + '\'' +
                ", lineId=" + lineId +
                ", lineName='" + lineName + '\'' +
                ", switchWl='" + switchWl + '\'' +
                ", longitude='" + longitude + '\'' +
                ", latitude='" + latitude + '\'' +
                ", switchBj='" + switchBj + '\'' +
                ", switchBj2='" + switchBj2 + '\'' +
                ", kilometer='" + kilometer + '\'' +
                ", deliverId=" + deliverId +
                ", deptId=" + deptId +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", createUser=" + createUser +
                ", updateUser=" + updateUser +
                ", sheng='" + sheng + '\'' +
                ", shi='" + shi + '\'' +
                ", qu='" + qu + '\'' +
                ", jie='" + jie + '\'' +
                '}';
    }
}
